<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Login Page</title>
        <link rel="stylesheet" href="css/mycss.css" type="text/css"></link>
    </h:head>

    <body style="background-color:#F0FFFF"></body>

    <h:body>
        <h3><em><font size="7">Login Form</font></em></h3>
        <h:form prependId="false">



            <posem><p:outputLabel for="username" value="Email" style="font: 24px/26px colibri"/>
                <p:inputText id="username" value="#{loginBean.username}" style=" position: relative ; left: 64px;
                             font: 24px/26px colibri" required="true" />
            </posem>

            <pospa>
                <p:outputLabel for="pass" value="Password" style="font: 24px/26px colibri"/>
                <p:password id="pass" value="#{loginBean.password}" style="position: relative; left: 30px;
                            font: 24px/26px colibri" required="true" />
            </pospa>
            <p:commandButton action="#{loginBean.login()}" value="Login" style="background-color:#90A4FD;
                             position: absolute; top: 385px; left: 512px"/>

            <p:button outcome="index" value="Back" style="width:100px; height:38px; background-color:#90A4FD;
                      position: absolute; top: 385px; left: 655px"/>


        </h:form>
        <h:outputText rendered="#{param['error']}" style="color: red" value="LOGIN FAILED"/><br/>
    </h:body>
</html>
